System enumeration is a crucial, typically first, step in the enumeration phase of post-exploitation.
cat /etc/issue
uname -a
cat /proc/version
lscpu
ps aux
List files owned by a certain user in a directory:
find <dir> -user <user name> 2>/dev/null
List files owned by a certain user in a directory (without /proc
):
find <dir> -user <user name> 2>/dev/null | grep -v "/proc"
List files owned by a certain group in a directory:
find <dir> -group <group name> 2>/dev/null
find <dir> -group <group name> 2>/dev/null | grep -v "/proc" # ignore /proc